import { fetchUserComments, fetchUserProfile } from '@/lib/api/account/profile'; import UserCommentsList from '../../_component/UserCommentsList'; type Props = { params: Promise<{ sid: string }>; }; export default async function UserProfileCommentsPage({ params }: Props) { const { sid } = await params; const [profileRes, commentsRes] = await Promise.all([ fetchUserProfile(sid), fetchUserComments(sid, 1, 20) ]); const list = commentsRes.data?.list ?? []; const author = profileRes.data ?? null; return ; }